import 'package:flutter/material.dart';
import 'package:ls_work/a_yyt/models/take_leave_entity.dart';
import 'package:ls_work/res/styles.dart';


class TakeLeaveCell extends StatelessWidget {
       
  final TakeLeaveInfo? info;
  TakeLeaveCell({Key? key,this.info});
  @override
  Widget build(BuildContext context) {
    String _validSign = info?.validSign??'';
    String _backTime = info?.backTime ?? '';
    num _leaveDay = info?.levelDayInt ?? 0;
    return Container(
      padding: EdgeInsets.fromLTRB(12, 0, 12, 0),
      child: Column(
        mainAxisAlignment: MainAxisAlignment.start,
        crossAxisAlignment: CrossAxisAlignment.start,
        children: <Widget>[
          Row(
            mainAxisAlignment: MainAxisAlignment.spaceBetween,
            children: <Widget>[
              Text(info?.customerElderName??"",style: TextStyles.textDark16),
              Text(_validSign,style: TextStyles.textGray14),
            ],
          ),
          SizedBox(height: 5,),
          Text('        离开时间：${info?.leaveTime??""}',style: TextStyles.textDark14),
          SizedBox(height: 5,),
          Text('计划回来时间：${info?.planBackTime??""}',style: TextStyles.textDark14),
          SizedBox(height: 5,),
          Text('实际回来时间：$_backTime',style: TextStyles.textDark14),
          SizedBox(height: 5,),
          Text('请假天数：$_leaveDay',style: TextStyles.textDark14),
          SizedBox(height: 5,),
          Text('请假理由：${info?.leaveReasonName??""}',style: TextStyles.textDark14),

          
        ],
      ),
    );
  }
}